package com.cloud.sso.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cloud.sso.common.constant.UserState;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@TableName("sys_user")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class User {

    @TableId(value = "id")
    private String id;

    @TableField(value = "user_name")
    private String userName;

    @TableField(value = "password")
    private String password;

    @TableField(value = "telephone")
    private String telephone;

    @TableField(value = "real_name")
    private String realName;

    @TableField(value = "email")
    private String email;

    @TableField(value = "sys_manage")
    private String sysManage = "0";

    @TableField(value = "state")
    private UserState state;


}
